import http from '@/utils/http'

export const addGoods = (data) => http({
	url: 'addGoods',
	method: 'post',
	data: data
})

export const delGoods = (data) => http({
	url: 'delGoods',
	method: 'post',
	data: data
})

export const updGoods = (data) => http({
	url: 'updGoods',
	method: 'post',
	data: data
})

export const getGoods = (data) => http({
	url: 'getGoods',
	method: 'post',
	header:{
		"Content-Type":"application/json"
	},
	data: data
})

export  const getAllGoods = (data) => http({
	url: 'getAllGoods',
	method: 'post',
	data: data
})